import request from '@/utils/request'

// 查询标签分页列表
export function listTag() {
    return request({
        url: '/api-blog/management/tag/list',
        method: 'get'
    })
}

// 查询标签详细
export function infoTag(tagId) {
    return request({
        url: '/api-blog/management/tag/info/' + tagId,
        method: 'get'
    })
}


// 新增标签
export function addTag(data) {
    return request({
        url: '/api-blog/management/tag/add',
        method: 'post',
        data: data
    })
}

// 修改标签
export function editTag(data) {
    return request({
        url: '/api-blog/management/tag/edit',
        method: 'put',
        data: data
    })
}

// 删除标签
export function removeTag(tagId) {
    return request({
        url: '/api-blog/management/tag/remove/' + tagId,
        method: 'delete'
    })
}